let { Schema, model } = require("mongoose");
let {studentModel} = require('./studentModel')

let {TestPaperModel} = require('./testPaperModel')


let collectionSchema = new Schema({
    studentId: {   // 所属学员 _id
        type: Schema.Types.ObjectId,
        ref: studentModel
    },
    exerciseId: {
        type: Schema.Types.ObjectId,
        ref: TestPaperModel
    }
  })
  let collectionModel = model("collectionModel", collectionSchema, "collections")

module.exports = {collectionModel}